﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class book
    {
        private string booktianjia;
        private string shanchu;
        public string Tian
        { get { return this.booktianjia; }
            set
            {
                if (value == "2")
                {
                    Console.WriteLine("请输入添加书籍");
                }
                else { 
                this.booktianjia = value;
                }
                }
        }
    }
}
